-- GENERATED SPELL FOR [Proto-Drake Rider] --


function spell0_24849(pUnit, Event) --@Piercing Jab,n/a--
pUnit:FullCastSpellOnTarget(31551,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24849', 20000, 1)
end

function spell1_24849(pUnit, Event) --@Piercing Jab,n/a--
pUnit:FullCastSpellOnTarget(59605,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24849', 20000, 1)
end

function spell2_24849(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(43665,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24849', 1500, 1)
end

function spell3_24849(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(59603,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24849', 1500, 1)
end

function spell4_24849(pUnit, Event) --@Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(32908,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24849', 10317, 1)
end

function spell5_24849(pUnit, Event) --@Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(59604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24849', 10303, 1)
end

function Sorts_24849(pUnit, Event)
local choix_sorts_24849 = math.random(0, 5)
if choix_sorts_24849 == 0 then
pUnit:RegisterEvent('spell0_24849', 1, 1)
end
if choix_sorts_24849 == 1 then
pUnit:RegisterEvent('spell1_24849', 1, 1)
end
if choix_sorts_24849 == 2 then
pUnit:RegisterEvent('spell2_24849', 1, 1)
end
if choix_sorts_24849 == 3 then
pUnit:RegisterEvent('spell3_24849', 1, 1)
end
if choix_sorts_24849 == 4 then
pUnit:RegisterEvent('spell4_24849', 1, 1)
end
if choix_sorts_24849 == 5 then
pUnit:RegisterEvent('spell5_24849', 1, 1)
end
end

function mob24849_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24849', math.random(1500, 3000), 1)
end

function mob24849_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24849_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24849_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24849, 1, 'mob24849_Action')
RegisterUnitEvent(24849, 2, 'mob24849_Leave')
RegisterUnitEvent(24849, 3, 'mob24849_Kill')
RegisterUnitEvent(24849, 4, 'mob24849_Die')
